//
//  VIPCartNumView.m
//  WeiYiMei
//
//  Created by iMac on 2019/4/13.
//  Copyright © 2019年 liyefu. All rights reserved.
//

#import "VIPCartNumView.h"

@interface VIPCartNumView ()

@property (nonatomic, strong) UILabel *cartNumLab;

@end

@implementation VIPCartNumView

- (void)setupSubViews
{
    self.backgroundColor = [UIColor clearColor];
    
    self.cartNumLab = [[UILabel alloc] init];
    self.cartNumLab.text = @"当前会员卡号：";
    self.cartNumLab.font = [UIFont systemFontOfSize:15];
    self.cartNumLab.textColor = kColor666666;
    [self addSubview:self.cartNumLab];
}

- (void)setupConstraints
{
    [self.cartNumLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.left.equalTo(self).offset(16);
        make.right.lessThanOrEqualTo(self).offset(-16);
    }];
}

- (void)setCartNum:(NSString *)cartNum
{
    _cartNum = cartNum;
    self.cartNumLab.text = [NSString stringWithFormat:@"当前会员卡号：%@",cartNum];
}

@end
